Searched hist:"90 ab48eb" (Results 1 – 1 of 1) sorted by path
/qemu/block/ |
H A D | mirror.c | 90ab48eb Thu Feb 02 14:25:15 GMT 2017 Anton Nefedov <anton.nefedov@virtuozzo.com> mirror: do not increase offset during initial zero_or_discard phase
If explicit zeroing out before mirroring is required for the target image, it moves the block job offset counter to EOF, then offset and len counters count the image size twice. There is no harm but stats are confusing, specifically the progress of the operation is always reported as 99% by management tools.
The patch skips offset increase for the first "technical" pass over the image. This should not cause any further harm.
Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 1486045515-8009-1-git-send-email-den@openvz.org CC: Jeff Cody <jcody@redhat.com> CC: Kevin Wolf <kwolf@redhat.com> CC: Max Reitz <mreitz@redhat.com> CC: Eric Blake <eblake@redhat.com> Signed-off-by: Jeff Cody <jcody@redhat.com>
|